$blue: #1f86ed;
$yellow: #ffcf49;

html {
    min-width: 1200px;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑";
}

.clear-float {
    clear: both !important;
    float: none !important;
    height: 0px !important;
    width: 0px !important;
    margin: 0px !important;
}

.meta-filter {
    margin: 20px auto;
}

.row {
    margin: 0px 30px;
    padding: 5px 0;
    border-bottom: 1px dashed #ccc;

    > div {
        padding: 0;
    }
}

.form-input-section {
    position: relative;
    margin: 10px;

    .input-title {
        float: left;
        line-height: 32px;
        font-size: 14px;
        color: #333;
        width: 88px;
    }

    .input-answer {
        float: left;
        line-height: 32px;
        font-size: 14px;
        color: #333;
        width: 88px;
    }

    .input-answer-lg {
        float: left;
        line-height: 32px;
        font-size: 14px;
        color: #333;
        padding-left: 88px;
        margin-top: -32px;
    }

    .input-answer-lgs {
        width: 68% !important;
        word-break: break-all;
    }

    .input-title.lg {
        width: 150px;
    }

    label {
        font-size: 14px;
        color: #666;
    }

    .input-control {
        overflow: hidden;
        height: 32px;

        input {
            height: 32px;
        }

        input[type="checkbox"], input[type="radio"] {
            height: auto;
        }

        input[type="radio"] {
            margin-left: -19px;
            margin-right: 7px;
        }

        input[type="number"] {
            padding: 5px 10px;
        }

        .checkbox-inline {
            width: 91px;
            margin: 0;
        }

        .sm {
            width: 100px;
            display: inline-block;
        }
    }

    .input-select {
        float: left;

        .ui-select-bootstrap .ui-select-choices-row.active > a {
            background-color: $blue;
        }

        .ui-select-bootstrap .ui-select-choices-row > a:hover, .ui-select-bootstrap .ui-select-choices-row > a:focus {
            background-color: $blue;
            color: white;
        }
        .ui-select-dropdown {
            border-radius: 0;
        }
    }

    .input-control-lg {
        overflow: hidden;
        margin-right: 50px;
        height: 100px;

        textarea {
            height: 90px;
            resize: none;
        }
    }

    .input-control-rich {
        height: auto;
        padding: 2px;
    }

    .input-error {
        position: absolute;
        width: 100px;
        right: 0px;
        top: 6px;
    }

    .checkbox-part {
        height: 32px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

.form-input-section-2 {
    margin: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dotted #999;

    .input-header {
        position: relative;
        margin-bottom: 10px;

        .input-title {
            display: inline-block;

            > * {
                display: inline-block;
            }

            input {
                width: auto;
                margin-left: 10px;
            }
        }

        .input-btn {
            display: inline-block;
            position: absolute;
            right: 0;

            .btn {
                padding: 2px 16px;
                margin-left: 10px;
            }
        }
    }

    .input-control {
        padding-right: 26px;

        textarea {
            height: 120px;
            resize: none;
            margin-left: 26px;
        }
    }

    .input-footer {
        position: relative;
        margin-top: 10px;
        padding-bottom: 30px;

        .input-file {
            display: inline-block;
            margin-left: 26px;
            margin-right: 300px;
        }

        .input-btn {
            display: inline-block;
            position: absolute;
            right: 0;
            top: 0;
        }
    }
}

.form-section {
    margin: 20px 10px;

    i {
        font-size: 20px;
        position: relative;
        top: 1px;
    }

    > span {
        padding-left: 10px;
        font-weight: bold;
        font-size: 18px;
    }
}

.form-hr {
    margin: 20px 0;
    border-top: 1px dashed #999;
}

.fa:hover {
    cursor: pointer;
}

a.fa:hover, a.fa:active, a.fa:focus {
    text-decoration: none;
    color: $blue;
}

.fa-blue {
    color: $blue;
    opacity: 0.7;
    transition: color 1s linear;
    margin: 0 5px;

    &:hover {
        opacity: 1.0;
    }
}

.fa-edit {
    position: relative;
    top: 7px;
}

.fa-remove {
    position: relative;
    top: 4px;
}

.fa-list {
    position: relative;
    top: 7px;
}

.fa-eye {
    position: relative;
    top: 5px;
}

.fa-arrow-down {
    margin-left: 5px;
    margin-right: -10px;
}

.fa-arrow-up {
    margin-left: 5px;
    margin-right: -10px;
}

.fa-sort-ctrl.active {
    color: $blue;
}

.fa-sort-ctrl-model.active {
    color: $blue;
}

.meta-table {
    width: 100%;
    padding: 5px 30px;
}

.meta-td-50 {
    width: 50px;
}

.meta-td-70 {
    width: 70px;
}

.meta-td-85 {
    width: 85px;
}

.meta-td-94 {
    width: 94px;
}

.meta-td-100 {
    width: 100px;
}

.meta-td-120 {
    width: 120px;
}

.meta-td-130 {
    width: 130px;
}

.meta-td-140 {
    width: 140px;
}

.table {
    td, th {
        line-height: 41px !important;
        padding: 5px !important;
    }
    .td-status {
        padding: 2px 4px;
        background-color: #1f86ed;
        line-height: 24px;
        border: 1px solid #1f86ed;
        border-radius: 5px;
        position: relative;
        top: 5px;
        color: white;
        margin-bottom: 0px;
    }
    .td-status1 {
        background-color: #d9534f !important;
        border: 1px solid #d9534f !important;
    }
    .td-status2 {
        background-color: #5bc0de;
        border: 1px solid #5bc0de;
    }
    .td-status3 {
        background-color: #f0ad4e;
        border: 1px solid #f0ad4e;
    }
    .td-status4 {
        background-color: #5cb85c;
        border: 1px solid #5cb85c;
    }
    .td-process1 {
        background-color: #8dc21f;
        border: 1px solid #8dc21f;
    }
    .td-process2 {
        background-color: #f7b52c;
        border: 1px solid #f7b52c;
    }
    .td-process3 {
        background-color: #e95513;
        border: 1px solid #e95513;
    }
    .td-process4 {
        background-color: #e3007f;
        border: 1px solid #e3007f;
    }
    .td-process5 {
        background-color: #5f1985;
        border: 1px solid #5f1985;
    }
    .td-process6 {
        background-color: #1f86ed;
        border: 1px solid #1f86ed;
    }
    .col-1 {
        background-color: #e9e7ef;
    }
    .col-2 {
        background-color: #e9f1f6;
    }
    .col-3 {
        background-color: #d6ecf0;
    }
    input[type="checkbox"] {
        margin: 0 5px;
    }
    .serach-input {
        margin: 0 auto;
    }
    .input-group-addon {
        padding: 3px;
    }
}

.meta-table-header {
    > div {
        float: right;
        margin: 20px 0;

        > button {
            margin-left: 10px;
        }
    }
}

.section-title {
    margin: 20px 30px;
    color: #666;
    padding: 3px 10px;
    border-left: 5px solid $blue;
    display: inline-block;
}

.meta-page {
    text-align: center;
    padding-bottom: 50px;

    ul {
        margin: 10px;
    }
}

.modal-header {
    position: relative;

    .fa-close {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}

.meta-edit {
    float: left;
    width: 66%;
    border-right: 1px solid #ccc;
    overflow-y: auto;
    height: 100%;
}

.meta-control {
    float: left;
    width: 34%;
}

.meta-edit-block {
    padding: 0 30px;

    .input-control {
        height: auto;

        .checkbox-part {
            height: auto;
        }
    }
}

.meta-body {
    overflow-y: auto;
    height: 100%;
}

.submit-container-double-lg {
    text-align: center;
    > button {
        margin: 20px;
        padding: 6px 40px;
    }
}

.submit-container-double-lg {
    text-align: center;
    > button {
        margin: 20px;
        padding: 6px 40px;
    }
}

.submit-container-double-lg-50 {
    button {
        width: 39%;
        margin: 10px 5% !important;
        display: inline-block;
    }
}

.submit-container-double-sm {
    text-align: right;
    > button {
        margin: 0 5px;
        padding: 2px 16px;
    }
}

.submit-container-three-sm {
    margin-left: 10px;

    button, a {
        width: 28%;
        margin: 2%;
        padding-top: 2px;
        padding-bottom: 2px;
    }
}

.submit-container-three-verticle {
    button {
        display: block;
        width: 90%;
        margin: 10px 5%;
    }

}

.inline-float-sm {
    float: left;
    width: 50%;
}

.inline-float-lg {
    float: left;
    width: 90%;
}

.control-select {
    overflow: inherit !important;
    margin-left: 88px;
}

.person-in-charge {
    margin-bottom: 5px;

    .checkbox-inline {
        margin-bottom: 5px !important;
    }
}

.form-input-inline {
    margin: 10px;

    .input-title {
        width: 88px;
        display: inline-block;
    }

    button {
        float: right;
        padding: 2px 16px;
    }
}

.meta-comment {
    .form-section {
        position: relative;

        .fa-arrow-up, .fa-arrow-down {
            position: absolute;
            right: 0;
        }
    }
    .meta-comments {
        overflow-y: scroll;
        padding: 0 10px 10px 10px;

        > div {
            color: #333;
            position: relative;
            margin: 10px 5px;
            border-bottom: 1px dashed #999;

            img {
                width: 50px;
                height: 50px;
                border-radius: 50%;
                position: absolute;
                left: 0;
            }

            > div {
                margin: 5px;
            }

            > p {
                padding-left: 65px;
            }

            .user {
                padding-left: 60px;
            }

            .name {
                color: gray
            }

            .time {
                position: absolute;
                right: 0;
                color: #a6a6a6;
            }

            &:first-child {
                margin-top: 0;
            }

            &:last-child {
                border: none;
            }
        }
    }
    .meta-comment-control {
        .input-title {
            margin-left: 0;
        }
    }
    .form-section {
        button {
            padding: 2px 20px;
            position: absolute;
            right: 0;
            margin-right: -10px;
        }
    }
    textarea {
        resize: none;
        height: 65px !important;
    }
}

.ui-select-multiple.ui-select-bootstrap input.ui-select-search {
    padding-left: 10px
}

.modal-choice {
    margin: 10px;

    .model-choice-block {
        .form-section {
            margin: 10px;
        }

        ul {
            padding-left: 0;
            list-style: none;
            position: relative;
            padding-top: 40px;
            border: 1px solid #ccc;
            border-radius: 5px;
            height: 350px;
            overflow-y: scroll;
        }

        li {
            padding: 10px 20px;
            border-bottom: 1px solid #ccc;
            color: #333;
            position: relative;
            line-height: 28px;

            .fa-plus-circle {
                position: relative;
                top: -3px;
                float: right;
                margin: 5px;
            }

            .fa-minus-circle {
                position: relative;
                top: -3px;
                float: right;
                margin: 5px;
            }

            .fa-eye {
                position: relative;
                top: -3px;
                float: right;
                margin: 5px;
            }

            &:hover {
                cursor: pointer;
                background-color: $blue;
                color: white;

                span {
                    color: #eee;
                }
            }

            &:first-child {
                position: fixed;
                top: 178px;
                z-index: 100;
                background-color: white;
                border-top-left-radius: 5px;
                border-top-right-radius: 5px;
                width: 45.3%;
                padding: 0px;
                border-bottom: none;

                input {
                    border-bottom-left-radius: 0;
                    border-bottom-right-radius: 0;
                    height: 39px;
                    padding-left: 20px;
                }

                .input-group-addon {
                    border-bottom-right-radius: 0;
                }
            }

            span {
                font-size: 10px;
                color: #aaa;
                margin-left: 20px;
            }
        }
    }

    .model-choice-left {
        width: 48%;
        margin-right: 2%;
        float: left;

        li:first-child {
            left: 26px;
        }
    }

    .model-choice-right {
        width: 48%;
        margin-left: 2%;
        float: left;

        li:first-child {
            right: 25px;
        }
    }

    .submit-container-double-lg {
        button {
            margin: 2% !important;
        }
    }
}

.model-choice-type {
    .row {
        margin: 0 -5px;
    }
    textarea {
        width: 100%;
        height: 150px;
        resize: none;
    }
    input[type='checkbox'] {
        margin-top: 0;
        position: relative;
        top: -1px;
    }
    .input-title {
        float: none;
        margin-left: 5px;
    }
    .col-lg-6, .col-lg-12 {
        padding: 10px;
    }
    .form-input-section {
        margin-left: 0;
        margin-top: -5px;
    }
}

.recommend-section {
    padding: 0px 30px;
    border-bottom: 1px dashed #ccc;

    .recommend-section-header {
        h4 {
            margin-left: 0;
            display: inline-block;
        }

        .submit-container-double-sm {
            float: right;
            margin: 20px auto;
        }
    }

    textarea {
        height: 300px;
        resize: none;
        margin: 10px 0px;
    }

}

.btn-search-possible {
    padding: 2px 16px;
    position: relative;
    top: 4px;
    float: right;
}

.account-me {
    width: 400px;
    padding: 20px;
}

.rich-textarea {
    padding-right: 0 !important;
}

.init-hide {
    display: none;
}

.meta-note {
    .nav-tabs {
        margin-top: 20px;

        li {
            width: 50%;
            text-align: center;

            a {
                border: none !important;
            }
        }
    }

    .tab-note {
        overflow-y: scroll;

        > div {
            border-bottom: 1px #ccc dashed;
            padding: 5px;

            .user {
                margin: 5px 0;
                font-weight: bold;
            }
        }
    }

}
